package codeGeneration;

import java.util.ArrayList;
import java.util.List;

public class ControlRules {
	private String controlName;
	private int typeOfControl;
	private List<Rule> rules;

	public ControlRules() {
		rules = new ArrayList<Rule>();
	}

	public String getControlName() {
		return controlName;
	}

	public void setControlName(String controlName) {
		this.controlName = controlName;
	}

	public List<Rule> getRules() {
		return rules;
	}

	public void setRules(List<Rule> rules) {
		this.rules = rules;
	}

	public void addRule(Rule rule) {
		rules.add(rule);
	}

	public int getTypeOfControl() {
		return typeOfControl;
	}

	public void setTypeOfControl(int typeOfControl) {
		this.typeOfControl = typeOfControl;
	}
}
